<?php
    require_once getenv('DOCUMENT_ROOT')."/lib/config.inc";
    require_once 'initialization.inc';
    
    if ( session_is_registered('user_id') ) {
        $doc_index = '/diary/index.inc';
    } else {
        $doc_index = '/lib/registration_error.inc';
    }
    define('DOC_INDEX', $doc_index);
    require_once 'pattern.inc';
?>